package cn.kgc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.io.Serializable;

/**
* 描述：实体类
* @author 
* @date 2018/03/05
*/
public class User implements Serializable {

   /**用户id*/
    private Integer userid;
   /**公司id*/
    private Integer companyid;
   /**用户身份*/
    private String indentity;
   /**用户账号*/
    private String username;
   /**用户密码*/
    private String password;
   /**问题*/
    private String question;
   /**答案*/
    private String answer;
   /**最新登录时间*/
   @JsonFormat(pattern = "yyyy-MM-dd")
    private Date time;

    public User(){}
    
    public User(Integer userid,Integer companyid,String indentity,String username,String password,String question,String answer,Date time){
        this.userid = userid;
        this.companyid = companyid;
        this.indentity = indentity;
        this.username = username;
        this.password = password;
        this.question = question;
        this.answer = answer;
        this.time = time;
    }

   /**获取用户id属性的值*/
    public Integer getUserid() {
        return this.userid;
    }
   /**设置用户id属性的值*/
    public void setUserid(Integer userid) {
        this.userid = userid;
    }
   /**获取公司id属性的值*/
    public Integer getCompanyid() {
        return this.companyid;
    }
   /**设置公司id属性的值*/
    public void setCompanyid(Integer companyid) {
        this.companyid = companyid;
    }
   /**获取用户身份属性的值*/
    public String getIndentity() {
        return this.indentity;
    }
   /**设置用户身份属性的值*/
    public void setIndentity(String indentity) {
        this.indentity = indentity;
    }
   /**获取用户账号属性的值*/
    public String getUsername() {
        return this.username;
    }
   /**设置用户账号属性的值*/
    public void setUsername(String username) {
        this.username = username;
    }
   /**获取用户密码属性的值*/
    public String getPassword() {
        return this.password;
    }
   /**设置用户密码属性的值*/
    public void setPassword(String password) {
        this.password = password;
    }
   /**获取问题属性的值*/
    public String getQuestion() {
        return this.question;
    }
   /**设置问题属性的值*/
    public void setQuestion(String question) {
        this.question = question;
    }
   /**获取答案属性的值*/
    public String getAnswer() {
        return this.answer;
    }
   /**设置答案属性的值*/
    public void setAnswer(String answer) {
        this.answer = answer;
    }
   /**获取最新登录时间属性的值*/
    public Date getTime() {
        return this.time;
    }
   /**设置最新登录时间属性的值*/
    public void setTime(Date time) {
        this.time = time;
    }
}
